VtHideDialog


Hide but do not destroy a dialog box

Syntax

VtHideDialog widgetName

Description

Same as VtHide, but given a child widget, this command can trace the widget's ancestry until it finds a dialog to hide.

Example

The following code creates a Form dialog containing a RowColumn widget, which in turn contains a PushButton. The dialog is then hidden from view by calling VtHideDialog for the PushButton.

set app [VtOpen "VtHideDialog Demo"]

set formdialog [VtFormDialog $app.formdialog]

set rowcolumn [VtRowColumn $formdialog.rowcolumn]

set pushbutton [VtPushButton $rowcolumn.pushbutton]

VtShow $formdialog

VtHideDialog $pushbutton